package com.ywg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ywg.entity.PaymentAccount;
import com.ywg.service.PaymentAccountService;
import com.ywg.mapper.PaymentAccountMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
* @author 24698
* @description 针对表【payment_account(支付账号)】的数据库操作Service实现
* @createDate 2025-03-04 15:02:09
*/
@Service
public class PaymentAccountServiceImpl extends ServiceImpl<PaymentAccountMapper, PaymentAccount>
    implements PaymentAccountService{
    @Resource
    private PaymentAccountMapper paymentAccountMapper;

    /**
     * 根据名称获取id
     * @param name 名称
     * @return id
     */
    @Override
    public Long getAccId(String name) {
        return paymentAccountMapper.getAccId(name);
    }
}




